<div class="main">
    <div class="leftcolumn">
        <div class="bxdetail">
            <?php
            if($model):?>
            <h2 class="tleprocategories"><span>Sản phẩm</span></h2>
            <div class="detailproject journalcontent">
                <h2 class="tledetailproject"><?=$model['name']?></h2>
                <?php echo str_replace('localhost','phamgiavan.com',$model['description'])?>
                
            </div>
            <?php
            if($product_other):?>
            <div class="procategories">
                <h2 class="tleprocategories"><span>Sản phẩm khác</span></h2>
                <ul>
                    <?php
                    foreach ($product_other as $key => $value):
                    ?>
                    <li>
                        <a href="<?=Yii::app()->baseUrl ?>/san-pham/<?=$value['slug']?>.html">
                            <img alt="<?=$value['name']?>" src="<?= Yii::app()->baseUrl ?>/timthumb.php?src=<?= Yii::app()->baseUrl ?>/data/cover/<?= $value['cover_image'] ?>&h=122&w=162" />
                            <h2><?=$value['name']?></h2>
                        </a>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>
            
            <?php endif;?>
            <?php endif;?>
        </div>
    </div>
    <?php $this->widget('SidebarWidget'); ?>
</div>